<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>testweb</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<a4j:form>
	<div id="right">
	<div class="tablelist">用户id<h:inputText value="#{TestwebBB.id}" />
	用户名<h:inputText value="#{TestwebBB.username}" />
	用户年龄<h:inputText value="#{TestwebBB.userage}" />
		<h:commandButton value="查询" action="#{TestwebBB.query}" reRender="testtable" />
	</div>
	<div><rich:dataTable id="testtable" width="100%" value="#{TestwebBB.testwebList}" var="table">
		<a4j:keepAlive beanName="TestwebBB" />
		<f:facet name="header">
			<rich:columnGroup>
				<rich:column>
					<h:outputText value="用户名" />
				</rich:column>
				<rich:column>
					<h:outputText value="用户年龄" />
				</rich:column>
			</rich:columnGroup>
		</f:facet>
		<rich:columnGroup>
			<rich:column>
				<h:outputText value="#{table.username}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.userage}" />
			</rich:column>
		</rich:columnGroup>
	</rich:dataTable></div>
	</div>
</a4j:form>
</body>
</html>

